-- BP 7.1.6 content: ModelClass syschar: 3 persistence-version: 7.1.6

INSERT INTO O_OBJ
	VALUES ("cff3f027-e597-4644-8fb2-21a96de83855",
	'Instance Relationship',
	201,
	'IRL',
	'An instance relationship describes the constraints and associations imposed on 
instantiation of related objects. ',
	"00000000-0000-0000-0000-000000000000");
INSERT INTO O_TFR
	VALUES ("35e56ab0-bc18-4d55-a951-a1f791c2ec00",
	"cff3f027-e597-4644-8fb2-21a96de83855",
	'createReferentials',
	'',
	"ba5eda7a-def5-0000-0000-000000000000",
	1,
	'select any sub from instances of SUB where selected.name == param.objectName;
select many idps related by sub->OBJ[R107]->OA[R129]->ATR[R124]->IDP[R102];
if (empty idps)
  select many idps related by sub->PRP[R107]->SPA[R130]->ATR[R124]->IDP[R102];
end if;
for each idp in idps
  select one atr related by idp->ATR[R102];
  create object instance refatr of ATR;
  refatr.name = atr.name + "(R" + TC::intToString( i:self.number ) + ")";
  create object instance ref of REF;
  relate ref to refatr across R103;
  relate idp to ref across R137;
  select one ncm related by self->NCM[R213];
  relate ref to ncm across R128;
end for;
',
	1,
	'',
	"00000000-0000-0000-0000-000000000000",
	0);
INSERT INTO O_TPARM
	VALUES ("1f201976-725d-400c-a9fd-d1890d0c5ba9",
	"35e56ab0-bc18-4d55-a951-a1f791c2ec00",
	'objectName',
	"ba5eda7a-def5-0000-0000-000000000004",
	0,
	'',
	"00000000-0000-0000-0000-000000000000",
	'');
INSERT INTO O_TFR
	VALUES ("dfc20f0c-92c9-42f1-9dd4-927a7bce83c4",
	"cff3f027-e597-4644-8fb2-21a96de83855",
	'delete',
	'',
	"ba5eda7a-def5-0000-0000-000000000000",
	1,
	'',
	1,
	'',
	"35e56ab0-bc18-4d55-a951-a1f791c2ec00",
	0);
INSERT INTO O_NBATTR
	VALUES ("3be16e5e-5f02-45be-bdf2-279a307ac8c2",
	"cff3f027-e597-4644-8fb2-21a96de83855");
INSERT INTO O_BATTR
	VALUES ("3be16e5e-5f02-45be-bdf2-279a307ac8c2",
	"cff3f027-e597-4644-8fb2-21a96de83855");
INSERT INTO O_ATTR
	VALUES ("3be16e5e-5f02-45be-bdf2-279a307ac8c2",
	"cff3f027-e597-4644-8fb2-21a96de83855",
	"00000000-0000-0000-0000-000000000000",
	'number',
	'',
	'',
	'number',
	0,
	"ba5eda7a-def5-0000-0000-000000000002",
	'',
	'');
INSERT INTO O_REF
	VALUES ("cff3f027-e597-4644-8fb2-21a96de83855",
	"3fa55715-8c25-4b15-a133-1051daad9535",
	0,
	"8bff37fe-a19d-4ba3-b1e6-3f8f55fce353",
	"b87f6a09-348e-4d2f-a9f5-c0c32c8d866d",
	"1d156c2c-d743-4a27-b78a-fe2afefee2ea",
	"cba30ee3-b15d-48b2-9105-f6106ebf9ead",
	"0e02b5ab-ec13-49e9-845f-f17e9bb31632",
	"b0435d7e-23fb-4214-bca2-0b0b65854adc",
	"00000000-0000-0000-0000-000000000000",
	0,
	'',
	'Relationship',
	'id',
	'R200');
INSERT INTO R_RGO_PROXY
	VALUES ("cff3f027-e597-4644-8fb2-21a96de83855",
	"b87f6a09-348e-4d2f-a9f5-c0c32c8d866d",
	"1d156c2c-d743-4a27-b78a-fe2afefee2ea",
	'../Relationship.xtuml');
INSERT INTO O_RTIDA_PROXY
	VALUES ("8bff37fe-a19d-4ba3-b1e6-3f8f55fce353",
	"3fa55715-8c25-4b15-a133-1051daad9535",
	0,
	"b87f6a09-348e-4d2f-a9f5-c0c32c8d866d",
	"cba30ee3-b15d-48b2-9105-f6106ebf9ead",
	'../Relationship.xtuml');
INSERT INTO O_RATTR
	VALUES ("0e02b5ab-ec13-49e9-845f-f17e9bb31632",
	"cff3f027-e597-4644-8fb2-21a96de83855",
	"8bff37fe-a19d-4ba3-b1e6-3f8f55fce353",
	"3fa55715-8c25-4b15-a133-1051daad9535",
	1,
	'id');
INSERT INTO O_BATTR_PROXY
	VALUES ("8bff37fe-a19d-4ba3-b1e6-3f8f55fce353",
	"3fa55715-8c25-4b15-a133-1051daad9535",
	'../Relationship/Relationship.xtuml');
INSERT INTO O_ATTR
	VALUES ("0e02b5ab-ec13-49e9-845f-f17e9bb31632",
	"cff3f027-e597-4644-8fb2-21a96de83855",
	"3be16e5e-5f02-45be-bdf2-279a307ac8c2",
	'id',
	'',
	'',
	'id',
	0,
	"ba5eda7a-def5-0000-0000-000000000007",
	'',
	'');
INSERT INTO O_REF
	VALUES ("cff3f027-e597-4644-8fb2-21a96de83855",
	"e2538c3c-cbd1-4d5d-acc1-665650c264b0",
	0,
	"57abd564-7250-4bad-a3ae-ce9efbfbabd4",
	"985d027b-3f60-4019-b7a4-1697ec45ac62",
	"e7380577-7b6f-4fd2-a873-196d8c257388",
	"c042949f-a46b-444e-879f-bcdd7fdcf981",
	"1165837c-915b-474b-8017-5454f8779d8d",
	"e13df79d-838e-48a1-83be-39ce4205e817",
	"00000000-0000-0000-0000-000000000000",
	0,
	'',
	'Subset',
	'name',
	'R133.''is related to''');
INSERT INTO R_RGO_PROXY
	VALUES ("cff3f027-e597-4644-8fb2-21a96de83855",
	"985d027b-3f60-4019-b7a4-1697ec45ac62",
	"e7380577-7b6f-4fd2-a873-196d8c257388",
	'../../Object/Object.xtuml');
INSERT INTO O_RTIDA_PROXY
	VALUES ("57abd564-7250-4bad-a3ae-ce9efbfbabd4",
	"e2538c3c-cbd1-4d5d-acc1-665650c264b0",
	0,
	"985d027b-3f60-4019-b7a4-1697ec45ac62",
	"c042949f-a46b-444e-879f-bcdd7fdcf981",
	'../../Object/Object.xtuml');
INSERT INTO O_RATTR
	VALUES ("1165837c-915b-474b-8017-5454f8779d8d",
	"cff3f027-e597-4644-8fb2-21a96de83855",
	"57abd564-7250-4bad-a3ae-ce9efbfbabd4",
	"e2538c3c-cbd1-4d5d-acc1-665650c264b0",
	1,
	'name');
INSERT INTO O_BATTR_PROXY
	VALUES ("57abd564-7250-4bad-a3ae-ce9efbfbabd4",
	"e2538c3c-cbd1-4d5d-acc1-665650c264b0",
	'../../Object/Subset/Subset.xtuml');
INSERT INTO O_ATTR
	VALUES ("1165837c-915b-474b-8017-5454f8779d8d",
	"cff3f027-e597-4644-8fb2-21a96de83855",
	"0e02b5ab-ec13-49e9-845f-f17e9bb31632",
	'right_object_name',
	'',
	'right_object_',
	'name',
	1,
	"ba5eda7a-def5-0000-0000-000000000007",
	'',
	'');
INSERT INTO O_REF
	VALUES ("cff3f027-e597-4644-8fb2-21a96de83855",
	"e2538c3c-cbd1-4d5d-acc1-665650c264b0",
	0,
	"57abd564-7250-4bad-a3ae-ce9efbfbabd4",
	"985d027b-3f60-4019-b7a4-1697ec45ac62",
	"e7380577-7b6f-4fd2-a873-196d8c257388",
	"6341c865-521e-4a0a-9644-84a853f003bf",
	"3931b86d-cffa-46b7-a79a-6a0c53682977",
	"c24ba040-b746-4cd5-be27-c59e8b5b6d87",
	"00000000-0000-0000-0000-000000000000",
	0,
	'',
	'Subset',
	'name',
	'R133');
INSERT INTO O_RTIDA_PROXY
	VALUES ("57abd564-7250-4bad-a3ae-ce9efbfbabd4",
	"e2538c3c-cbd1-4d5d-acc1-665650c264b0",
	0,
	"985d027b-3f60-4019-b7a4-1697ec45ac62",
	"6341c865-521e-4a0a-9644-84a853f003bf",
	'../../Object/Object.xtuml');
INSERT INTO O_RATTR
	VALUES ("3931b86d-cffa-46b7-a79a-6a0c53682977",
	"cff3f027-e597-4644-8fb2-21a96de83855",
	"57abd564-7250-4bad-a3ae-ce9efbfbabd4",
	"e2538c3c-cbd1-4d5d-acc1-665650c264b0",
	1,
	'name');
INSERT INTO O_ATTR
	VALUES ("3931b86d-cffa-46b7-a79a-6a0c53682977",
	"cff3f027-e597-4644-8fb2-21a96de83855",
	"1165837c-915b-474b-8017-5454f8779d8d",
	'left_object_name',
	'',
	'left_object_',
	'name',
	1,
	"ba5eda7a-def5-0000-0000-000000000007",
	'',
	'');
INSERT INTO O_ID
	VALUES (0,
	"cff3f027-e597-4644-8fb2-21a96de83855");
INSERT INTO O_OIDA
	VALUES ("3be16e5e-5f02-45be-bdf2-279a307ac8c2",
	"cff3f027-e597-4644-8fb2-21a96de83855",
	0,
	'number');
INSERT INTO O_ID
	VALUES (1,
	"cff3f027-e597-4644-8fb2-21a96de83855");
INSERT INTO O_OIDA
	VALUES ("0e02b5ab-ec13-49e9-845f-f17e9bb31632",
	"cff3f027-e597-4644-8fb2-21a96de83855",
	1,
	'id');
INSERT INTO O_ID
	VALUES (2,
	"cff3f027-e597-4644-8fb2-21a96de83855");
INSERT INTO O_OIDA
	VALUES ("1165837c-915b-474b-8017-5454f8779d8d",
	"cff3f027-e597-4644-8fb2-21a96de83855",
	2,
	'right_object_name');
INSERT INTO O_OIDA
	VALUES ("3931b86d-cffa-46b7-a79a-6a0c53682977",
	"cff3f027-e597-4644-8fb2-21a96de83855",
	2,
	'left_object_name');
INSERT INTO PE_PE
	VALUES ("cff3f027-e597-4644-8fb2-21a96de83855",
	1,
	"f6815fff-5a20-47cc-b933-afb469f264cf",
	"00000000-0000-0000-0000-000000000000",
	4);
INSERT INTO EP_PKG_PROXY
	VALUES ("f6815fff-5a20-47cc-b933-afb469f264cf",
	"00000000-0000-0000-0000-000000000000",
	"c8b88000-dddc-4206-8410-2f69b8f86b67",
	'Relationship',
	'The subsystem of the metamodel concerning relationships.

This diagram borrows heavily from the miUML (www.miuml.org) metamodel, because 
why reinvent the open-sourced wheel? The key differences are the extra level of 
abstraction due to instance representation in this metamodel, and the lack of 
a generalization relationship in this metamodel, as generalizations aren''t 
relationships in this metamodel.',
	200,
	'../Relationship.xtuml');
